]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Center align "No Notifications" text
authorrevisto <therevisto@gmail.com>
Wed, 17 Dec 2025 21:13:47 +0000 (00:43 +0330)
committeralireza.shabani <alireza.shabani@divar.ir>
Thu, 18 Dec 2025 12:05:18 +0000 (15:35 +0330)
The "No Notifications" placeholder was left-aligned instead of
centered, which looked unbalanced in the empty notification state.
Fix by centering the label.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8913
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4005>

js/ui/calendar.js

index 6bb22dde64b7e3489080bd8667749756a5825867..114b3d351c2e04cce258214088a57901299e5422 100644 (file)
@@ -770,7 +770,10 @@ class Placeholder extends St.BoxLayout {
         this._icon = new St.Icon({icon_name: 'no-notifications-symbolic'});
         this.add_child(this._icon);
 
-        this._label = new St.Label({text: _('No Notifications')});
+        this._label = new St.Label({
+            text: _('No Notifications'),
+            x_align: Clutter.ActorAlign.CENTER,
+        });
         this.add_child(this._label);
     }
 });